package com.andeveloper.kyodai;

import com.badlogic.gdx.Game;

public class Kyodai extends Game {

	@Override
	public void create() {
		GameConfig.load();
		Assets.load();
		setScreen(getMainMenuScreen());
		if (GameConfig.music)
			Assets.bgMusic.play();
	}

	@Override
	public void dispose() {
		super.dispose();
		GameConfig.save();
	}

	public GameOverScreen getGameOverScreen() {
		return new GameOverScreen(this);
	}

	public GameScreen getGameScreen() {
		return new GameScreen(this);
	}

	public MainMenuScreen getMainMenuScreen() {
		return new MainMenuScreen(this);
	}

	public SelectLevelScreen getSelectLevelScreen() {
		return new SelectLevelScreen(this);
	}
}
